﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ParkingLot.Entitys
{
    /// <summary>
    /// 两个对象的对应关系
    /// </summary>
    [Serializable]
    public class MapRelationBase:ViewModelBase
    {
        private string m_MainID;

        /// <summary>
        /// 主ID
        /// </summary>
        public string MainID
        {
            get { return m_MainID; }
            set
            {
                m_MainID = value;
                this.RaisePropertyChanged(()=>MainID);
            }
        }

        private BindingList<string> m_LisSubID=new BindingList<string>();

        /// <summary>
        /// 从ID
        /// </summary>
        public BindingList<string> LisSubID
        {
            get { return m_LisSubID; }
            set
            {
                m_LisSubID = value;
                this.RaisePropertyChanged(()=> LisSubID);
            }
        }
    }
}
